package flex.cc.order.manage.dao;

import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import flex.cc.order.manage.dto.order.OrderServiceRescueEntity;
import org.springframework.stereotype.Repository;

/**
 *
 * @author WANGCONG
 * 2021年9月6日下午4:29:52
 * @desc 服务单待实际救援信息数据层
 */
@Mapper
@Repository
public interface OrderServiceRescueDao extends BaseMapper<OrderServiceRescueEntity>{

	/**
	 *
	 * @author WANGCONG
	 * 2021年9月10日下午6:01:08
	 * @desc 根据map更新待实际救援信息（状态回写）
	 */
	int updateByParams(Map<String, Object> param);

	/**
	 * @description 插入
	 * @param orderServiceRescueEntity
	 * @return
	 * @author wkangle
	 * @time 2021-09-14 16:02:54
	 * @exception/throws
	 */
	int insert(OrderServiceRescueEntity orderServiceRescueEntity);

	/**
	 * @description 更新
	 * @param orderServiceRescueEntity
	 * @return
	 * @author wkangle
	 * @time 2021/09/14 0014 17:50
	 * @exception/throws
	*/
	int update(OrderServiceRescueEntity orderServiceRescueEntity);

	/**
	 * @description 根据查询条件查询服务单实际救援信息
	 * @param params 查询条件
	 * @return
	 * @author wkangle
	 * @time 2021-09-15 17:05:51
	 * @exception/throws
	 */
	OrderServiceRescueEntity getOneByParams(Map<String, Object> params);

}
